<template>
  <div class="income">
    <el-timeline>
      <el-timeline-item timestamp="2018/4/12" placement="top">
        <el-card>
          <h4>更新 Github 模板</h4>
          <p>王小虎 提交于 2018/4/12 20:46</p>
        </el-card>
      </el-timeline-item>
      <el-timeline-item timestamp="2018/4/12" placement="top">
        <el-card>
          <h4>更新 Github 模板</h4>
          <p>王小虎 提交于 2018/4/12 20:46</p>
        </el-card>
      </el-timeline-item>
      <el-timeline-item timestamp="2018/4/12" placement="top">
        <el-card>
          <h4>更新 Github 模板</h4>
          <p>王小虎 提交于 2018/4/12 20:46</p>
        </el-card>
      </el-timeline-item>
      <el-timeline-item timestamp="2018/4/12" placement="top">
        <el-card>
          <h4>更新 Github 模板</h4>
          <p>王小虎 提交于 2018/4/12 20:46</p>
        </el-card>
      </el-timeline-item>
      <el-timeline-item timestamp="2018/4/3" placement="top">
        <el-card>
          <h4>更新 Github 模板</h4>
          <p>王小虎 提交于 2018/4/3 20:46</p>
        </el-card>
      </el-timeline-item>
      <el-timeline-item timestamp="2018/4/2" placement="top">
        <el-card>
          <h4>更新 Github 模板</h4>
          <p>王小虎 提交于 2018/4/2 20:46</p>
        </el-card>
      </el-timeline-item>
    </el-timeline>
  </div>
</template>

<script>
import { Timeline, TimelineItem, Card } from "element-ui";
export default {
  components: {
    ElTimeline: Timeline,
    ElTimelineItem: TimelineItem,
    ElCard: Card
  }
};
</script>

<style lang="scss" scoped>
.income {
  box-sizing: border-box;
  margin: 40px;
  width: 400px;
  .el-timeline {
    .el-timeline-item {
      .el-timeline-item__wrapper {
        .el-timeline-item__timestamp {
          float: left;
        }
      }
    }
  }
}
</style>
<style lang="scss">
.income {
  .el-timeline {
    .el-timeline-item {
      .el-timeline-item__wrapper {
        .el-timeline-item__timestamp {
          text-align: left;
        }
        .el-timeline-item__content {
          .el-card {
            padding: 15px;
            .el-card__body {
              h4 {
                text-align: left;
                margin-bottom: 20px;
                color: #1f2f3d;
              }
              p {
                text-align: left;
                color: #5e6d82;
              }
            }
          }
        }
      }
    }
  }
}
</style>